<section id="form" style="margin: 50px 0 50px 0;"><!--form-->
	<div class="container">
		<div class="row">
			<div class="col-sm-9">
				<div class="container">
					<?php
					//lets have the flashdata overright "$message" if it exists
					if($this->session->flashdata('message'))
					{
						$message    = $this->session->flashdata('message');
					}

					if($this->session->flashdata('error'))
					{
						$error  = $this->session->flashdata('error');
					}

					if(function_exists('validation_errors') && validation_errors() != '')
					{
						$error  = validation_errors();
					}
					?>

					<div id="js_error_container" class="alert alert-error" style="display:none;">
						<p id="js_error"></p>
					</div>

					<div id="js_note_container" class="alert alert-note" style="display:none;">

					</div>

					<?php if (!empty($message)): ?>
						<div class="alert alert-success">
							<a class="close" data-dismiss="alert">×</a>
							<?php echo $message; ?>
						</div>
					<?php endif; ?>

					<?php if (!empty($error)): ?>
						<div class="alert alert-error">
							<a class="close" data-dismiss="alert">×</a>
							<?php echo $error; ?>
						</div>
					<?php endif; ?>
				</div>
			</div>
			<div class="col-sm-4 col-sm-offset-2">
				<div class="login-form"><!--login form-->
					<h2>Đăng nhập</h2>
					<?php echo form_open('secure/login', 'class="form-horizontal"'); ?>
					<input type="email" name="email" placeholder="<?php echo lang('email'); ?>" autocomplete="off"/>
					<input type="password" name="password" placeholder="<?php echo lang('password'); ?>"
						   autocomplete="off"/>
								<span>
									<input type="checkbox" class="checkbox" name="remember">
									<?php echo lang('keep_me_logged_in');?>
								</span>
					<button type="submit" name="submit" id="submit"
							class="btn btn-default"><?php echo lang('form_login'); ?></button>
					</form>
				</div><!--/login form-->
			</div>
			<div class="col-sm-1">
				<h2 class="or">Hoặc</h2>
			</div>
			<div class="col-sm-4">
				<div class="signup-form"><!--sign up form-->
					<h2><?php echo lang('new_account');?></h2>
					<?php echo form_open('secure/register', 'class="form-horizontal"'); ?>
						<input type="text" name="firstname" placeholder="<?php echo lang('account_firstname');?>" autocomplete="off" />
						<input type="email" name="email" placeholder="<?php echo lang('email');?>" autocomplete="off" />
						<input type="text" name="phone" placeholder="Điện thoại" autocomplete="off" />
						<input type="password" name="password" placeholder="<?php echo lang('password');?>"autocomplete="off" />
						<input type="password" name="confirm" placeholder="Nhập lại password" autocomplete="off" />
						<button type="submit" class="btn btn-default"><?php echo lang('bt_new_account');?></button>
					</form>
				</div><!--/sign up form-->
			</div>
		</div>
	</div>
</section><!--/form-->